package com.netease.pris.activity;

import android.text.Html;
import android.text.TextUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.netease.framework.k;
import com.netease.pris.activity.view.c;
import com.netease.pris.atom.aa;
import com.netease.pris.atom.g;
import com.netease.pris.atom.o;
import com.netease.pris.atom.r;
import com.netease.pris.atom.u;
import com.netease.pris.protocol.d;
import java.util.LinkedList;

class fx extends com.netease.pris.b
{
  fx(SearchActivity paramSearchActivity)
  {
  }

  public void a()
  {
    this.a.b();
    SearchActivity.a(this.a, false);
  }

  public void a(int paramInt1, int paramInt2, com.netease.pris.atom.b paramb, String paramString, boolean paramBoolean)
  {
    if (SearchActivity.j(this.a).contains(new Integer(paramInt1)))
    {
      SearchActivity.j(this.a).remove(new Integer(paramInt1));
      SearchActivity.b(this.a, false);
      this.a.b();
      SearchActivity.a(this.a, false);
      dc.a(SearchActivity.e(this.a), paramInt2);
    }
  }

  public void a(int paramInt, com.netease.pris.atom.b paramb, d paramd, boolean paramBoolean)
  {
    if (SearchActivity.j(this.a).contains(new Integer(paramInt)))
    {
      SearchActivity.j(this.a).remove(new Integer(paramInt));
      SearchActivity.b(this.a, false);
      this.a.b();
      SearchActivity.a(this.a, false);
      if (SearchActivity.k(this.a) != null)
        break label75;
    }
    while (true)
    {
      return;
      label75: SearchActivity.k(this.a).removeFooterView(SearchActivity.l(this.a));
      if (paramd == null)
        continue;
      SearchActivity.a(this.a, paramd, paramBoolean);
      if (!paramBoolean)
      {
        if (paramd.h.size() != 0)
          break label283;
        if (!k.a(this.a).c())
          break label276;
      }
      String str3;
      String str2;
      label276: for (int j = 2131361862; ; j = 2131361863)
      {
        SearchActivity localSearchActivity2 = this.a;
        Object[] arrayOfObject2 = new Object[1];
        arrayOfObject2[0] = SearchActivity.m(this.a);
        str3 = localSearchActivity2.getString(j, arrayOfObject2);
        if (SearchActivity.n(this.a) != null)
        {
          SearchActivity.n(this.a).setText(Html.fromHtml(str3));
          SearchActivity.n(this.a).setVisibility(0);
        }
        String str1 = SearchActivity.o(this.a);
        SearchActivity.c(this.a, null);
        if (paramd.g == null)
          break;
        str2 = paramd.g.b(g.i);
        if (TextUtils.isEmpty(str2))
          break;
        if (!str2.equals(str1))
          break label358;
        SearchActivity.c(this.a, null);
        break;
      }
      label283: if (k.a(this.a).c());
      for (int i = 2131361864; ; i = 2131361865)
      {
        SearchActivity localSearchActivity1 = this.a;
        Object[] arrayOfObject1 = new Object[2];
        arrayOfObject1[0] = Long.valueOf(paramd.g.J());
        arrayOfObject1[1] = SearchActivity.m(this.a);
        str3 = localSearchActivity1.getString(i, arrayOfObject1);
        break;
      }
      label358: SearchActivity.c(this.a, str2);
    }
  }

  public void b(int paramInt1, int paramInt2, String paramString, boolean paramBoolean)
  {
    if (SearchActivity.j(this.a).contains(new Integer(paramInt1)))
    {
      SearchActivity.j(this.a).remove(new Integer(paramInt1));
      dc.a(SearchActivity.e(this.a), paramInt2);
    }
  }

  public void b(int paramInt, d paramd)
  {
    if (paramd == null)
      if (SearchActivity.j(this.a).contains(new Integer(paramInt)))
        SearchActivity.j(this.a).remove(new Integer(paramInt));
    while (true)
    {
      return;
      if (paramd.j.size() > 0)
      {
        if (SearchActivity.j(this.a).contains(new Integer(paramInt)))
        {
          SearchActivity.j(this.a).remove(new Integer(paramInt));
          Toast.makeText(SearchActivity.e(this.a), 2131361911, 0).show();
        }
        if (SearchActivity.k(this.a) == null)
          continue;
        c localc1 = new c();
        localc1.a = ((o)paramd.j.getFirst()).a();
        Button localButton = (Button)SearchActivity.k(this.a).findViewWithTag(localc1);
        if (localButton != null)
        {
          localButton.setText(2131361909);
          localButton.setCompoundDrawablesWithIntrinsicBounds(2130837547, 0, 0, 0);
          localc1.b = ((c)localButton.getTag()).b;
        }
        c localc2 = new c();
        localc1.a += "mark";
        ImageView localImageView = (ImageView)SearchActivity.k(this.a).findViewWithTag(localc2);
        if (localImageView != null)
          localImageView.setVisibility(8);
        if (SearchActivity.d(this.a) == null)
          continue;
        ((com.netease.pris.activity.a.ad)SearchActivity.d(this.a)).a(aa.b, localc1.a);
        if (((com.netease.pris.activity.a.ad)SearchActivity.d(this.a)).f(localc1.b) == null)
          continue;
        ((com.netease.pris.activity.a.ad)SearchActivity.d(this.a)).f(localc1.b).a(aa.b);
        continue;
      }
      if ((paramd.i.size() <= 0) || (!SearchActivity.j(this.a).contains(new Integer(paramInt))))
        continue;
      SearchActivity.j(this.a).remove(new Integer(paramInt));
      Toast.makeText(SearchActivity.e(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }

  public void b(int paramInt, d paramd, boolean paramBoolean)
  {
    if (SearchActivity.j(this.a).contains(new Integer(paramInt)))
    {
      SearchActivity.j(this.a).remove(new Integer(paramInt));
      if (paramd != null)
        break label45;
    }
    while (true)
    {
      return;
      label45: SearchActivity.a(this.a, paramd, false);
    }
  }

  public void d(int paramInt1, int paramInt2, String paramString)
  {
    if (SearchActivity.j(this.a).contains(new Integer(paramInt1)))
    {
      SearchActivity.j(this.a).remove(new Integer(paramInt1));
      dc.a(SearchActivity.e(this.a), paramInt2);
    }
  }

  public void e(int paramInt1, int paramInt2, String paramString)
  {
    if (SearchActivity.j(this.a).contains(new Integer(paramInt1)))
    {
      SearchActivity.j(this.a).remove(new Integer(paramInt1));
      dc.a(SearchActivity.e(this.a), paramInt2);
    }
  }

  public void f(int paramInt, d paramd)
  {
    if (paramd == null)
      if (SearchActivity.j(this.a).contains(new Integer(paramInt)))
        SearchActivity.j(this.a).remove(new Integer(paramInt));
    while (true)
    {
      return;
      if (paramd.h.size() > 0)
      {
        if (SearchActivity.j(this.a).contains(new Integer(paramInt)))
        {
          SearchActivity.j(this.a).remove(new Integer(paramInt));
          Toast.makeText(SearchActivity.e(this.a), 2131361910, 0).show();
        }
        if (SearchActivity.k(this.a) == null)
          continue;
        c localc1 = new c();
        localc1.a = ((u)paramd.h.getFirst()).V();
        Button localButton = (Button)SearchActivity.k(this.a).findViewWithTag(localc1);
        if (localButton != null)
        {
          localButton.setText(2131361879);
          localButton.setCompoundDrawablesWithIntrinsicBounds(2130837548, 0, 0, 0);
          localc1.b = ((c)localButton.getTag()).b;
        }
        c localc2 = new c();
        localc1.a += "mark";
        ImageView localImageView = (ImageView)SearchActivity.k(this.a).findViewWithTag(localc2);
        if (localImageView != null)
          localImageView.setVisibility(0);
        if (SearchActivity.d(this.a) == null)
          continue;
        ((com.netease.pris.activity.a.ad)SearchActivity.d(this.a)).a(aa.a, localc1.a);
        if (((com.netease.pris.activity.a.ad)SearchActivity.d(this.a)).f(localc1.b) == null)
          continue;
        ((com.netease.pris.activity.a.ad)SearchActivity.d(this.a)).f(localc1.b).a(aa.a);
        continue;
      }
      if ((paramd.i.size() <= 0) || (!SearchActivity.j(this.a).contains(new Integer(paramInt))))
        continue;
      SearchActivity.j(this.a).remove(new Integer(paramInt));
      Toast.makeText(SearchActivity.e(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.fx
 * JD-Core Version:    0.6.0
 */